<ion-modal-view>
<div class="login_wrap" [has-bouncing="false"] id="login">
    <div class="loginwuxian_wrap" ng-show="!isNetworkOk">
        <div class="weui-flex">
            <img src="img/commimg/wuxian.png" alt="">
            <span class="weui-flex__item">网络请求失败，请检查您的网络设置</span>
            <!--<i class="ion-ios-arrow-right" ng-if="newIOSAPP">-->

            <!--</i>-->
        </div>
    </div>




    <div class="login_main">
        <div class="logo_wrap">
          <img src="img/commimg/logo.png" alt="">
        </div>

      <div class="login_con">
          <!-- 密码登录 -->
        <div class="" ng-if="!login.isFastLogin">
          <div class="weui-flex">
              <i>
                <img src="img/commimg/yh_icon.png" alt="">
              </i>
            <input type="tel"  ng-model="login.data.loginName" maxlength="11" class="weui-flex__item" placeholder="请输入手机号">
            <span ng-show="login.data.loginName" ng-click="login.data.loginName=''">
                <img src="img/commimg/delete_icon.png" alt="">
            </span>
          </div>
          <div class="weui-flex">
              <i>
                <img src="img/commimg/paw_icon.png" alt="">
              </i>

              <input class="weui-flex__item" type="password" ng-show="login.isShowPassword" ng-model="login.data.password"  placeholder="请输入密码" maxlength="18">
              <input class="weui-flex__item" type="text" ng-show="!login.isShowPassword" ng-model="login.data.password" placeholder="请输入密码" maxlength="18">
              <span style="display: block;width: 30px;height: 34px;">
              	<i style="display: block;width: 30px;height: 34px;" class="icon login-page-icon" ng-class="{true: 'login-show-eye', false: 'login-show-uneye'}[login.data.password && login.isShowPassword]" ng-click = "login.isShowPassword = !login.isShowPassword"></i>
                <!--密码显示隐藏状态切换图标 <img src="img/over_icon.png" alt="">-->
              </span>

          </div>
        </div>

          <!-- 短信随机码登录 -->
          <div class="" ng-if="login.isFastLogin">
              <div class="weui-flex">
                  <i>
                      <img src="img/commimg/yh_icon.png" alt="">
                  </i>
                  <input type="tel"  ng-model="login.data.loginName" maxlength="11" class="weui-flex__item" placeholder="请输入手机号">
                    <span ng-show="login.data.loginName" ng-click="login.data.loginName=''">
                        <img src="img/commimg/delete_icon.png" alt="">
                    </span>
              </div>
              <div class="weui-flex">
                  <i>
                      <img src="img/commimg/paw_icon.png" alt="">
                  </i>
                  <input type="tel" class="weui-flex__item" ng-model="login.data.imgvCode" maxlength="6" placeholder="请输入图形验证码">
                  <img style="margin-bottom: 10px;" ng-click="login.getRandNum()" ng-src="{{$root.baseUrl}}/{{$root.jincs_env}}/api/verifyCode/service?{{login.randNum}}">
              </div>
              <div class="weui-flex">
                  <i>
                      <img src="img/commimg/paw_icon.png" alt="">
                  </i>

                  <input class="weui-flex__item" type="text" ng-model="login.data.validatecode"  placeholder="请输入验证码" maxlength="6">
                  <a ng-show="login.interval == 0" ng-click="login.sendVcode()" style="line-height: 34px;color: #333;">
                      获取验证码
                  </a>
                  <a ng-show="login.interval != 0" style="line-height: 34px;color: #4a90ce">
                      {{login.interval}}s
                  </a>

              </div>
          </div>

        <button class="button button-block login_btn" ng-click="login.done()" ng-disabled ="(login.data.loginName.length==11 && login.data.password.length >=6)?disabled:!disabled" ng-if="!login.isFastLogin">
          {{relation.weChatBind?'关联微信并登录':'登录'}}
        </button>

          <button class="button button-block login_btn" ng-click="login.fastdone()" ng-disabled = "(login.data.loginName.length==11 &&login.data.validatecode.length ==6&&login.data.imgvCode.length==4)?disabled:!disabled" ng-if="login.isFastLogin">
              {{relation.weChatBind?'关联微信并登录':'登录'}}
          </button>
          <!--其他方式登录-->
          <div class="login_link" ng-show="!relation.weChatBind">
              <div class="login_link_head">
                    <h3>其他登录方式</h3>
              </div>
              <div class="login_link_con">
                  <div class="weui-flex">
                      <div class="weixin_link weui-flex__item" ng-if="ishavewx">
                          <span  ng-click="login.androidWeixin()">
                                <img src="img/commimg/weixin_icon.png" alt="" >
                                 <i>微信登录</i>
                          </span>

                      </div>
                      <div class="weixin_link weui-flex__item" >
                          <span ng-click="login.isFastLogin=true" ng-if="!login.isFastLogin">
                                <img src="img/commimg/duanxin_icon.png" alt="" >
                                 <i>短信随机码登录</i>
                          </span>
                          <!--密码登录-->
                          <span ng-click="login.isFastLogin=false" ng-if="login.isFastLogin">
                                <img src="img/commimg/mima_icon.png" alt="" >
                                 <i>密码登录</i>
                          </span>
                      </div>
                  </div>

              </div>

          </div>
      </div>
<!--ng-if="(newIOSAPP || newAndroidAPP) && !relation.weChatBind && isWXAppInstall == 1"-->


    </div>
    <div class="login_por clear">
        <a class="fl" ng-click="login.showRegister()">注册</a>
        <a class="fr" ng-click="modal.forgetPassword()">忘记密码？</a>
    </div>
  </div>
  </ion-modal-view>
